package com.xbongbong.pro.recheck.pojo;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * @description 每个字段的重复规则pojo
 * @author yanglei
 * @date 2022/11/8 19:25
 */
@Getter
@Setter
@ToString
@NoArgsConstructor
public class RecheckAttrRulePojo implements Serializable {

    /**
     * 被查重的字段attr
     */
    private String attr;
    /**
     * 被查重的字段attrName
     */
    private String attrName;
    /**
     * 是否全部模板。1 是 0 否
     */
    private Integer isAll;
    /**
     * 查重的formid
     */
    private Long linkFormId;
    /**
     * 查重的formName
     */
    private Long linkFormName;
    /**
     * 联合查重的业务类型
     */
    private Integer linkBusinessType;
    /**
     * 匹配方式 1 精确匹配 2 模糊匹配
     */
    private Integer matchWay;
    /**
     * 查重的字段attr
     */
    private String linkAttr;
    /**
     * 查重的字段attrName
     */
    private String linkAttrName;

    public RecheckAttrRulePojo(Integer isAll,String attr,String linkAttr,Long linkFormId,Integer matchWay,Integer linkBusinessType){
        this.isAll = isAll;
        this.attr = attr;
        this.linkAttr = linkAttr;
        this.linkFormId = linkFormId;
        this.matchWay = matchWay;
        this.linkBusinessType = linkBusinessType;
    }
}
